package com.project.erp.model.system;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.project.erp.model.IdEntity;

/**
 * 
 * COPYRIGHT (C) 2013 BY XXX公司
 * 
 * 功能模块名：系统-系统编号生成
 * 
 * 功能描述：生成系统编号表
 * 
 * @author LiJiaGuo
 * 
 * @version 1.0
 * 
 * @created 2013-12-11 下午10:28:05
 */
@Entity
@Table(name = "TBL_DOC_NUMBER")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class DocNumber extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4523810313541300198L;

	private String docName; // 业务名称
	private String geneYear; // 生成年份
	private String geneMonth; // 生成月份
	private String geneDay; // 生成日
	private Long numCount; // 累计生成数

	@Column(columnDefinition="varchar(50)",nullable=false)
	public String getDocName() {
		return docName;
	}

	public void setDocName(String docName) {
		this.docName = docName;
	}

	@Column(columnDefinition="varchar(10)")
	public String getGeneYear() {
		return geneYear;
	}

	public void setGeneYear(String geneYear) {
		this.geneYear = geneYear;
	}

	@Column(columnDefinition="varchar(10)")
	public String getGeneMonth() {
		return geneMonth;
	}

	public void setGeneMonth(String geneMonth) {
		this.geneMonth = geneMonth;
	}

	@Column(columnDefinition="varchar(10)")
	public String getGeneDay() {
		return geneDay;
	}

	public void setGeneDay(String geneDay) {
		this.geneDay = geneDay;
	}

	@Column(columnDefinition="varchar(10)",nullable=false)
	public Long getNumCount() {
		return numCount;
	}

	public void setNumCount(Long numCount) {
		this.numCount = numCount;
	}
}
